package com.kotlin.usercenter.data.api

import com.kotlin.base.data.protocol.BaseResp
import com.kotlin.usercenter.data.protocol.*
import retrofit2.http.Body
import retrofit2.http.POST
import rx.Observable

interface UserApi {

    @POST("/ userCenter/register")
    fun register(@Body req: RegisterReq): Observable<BaseResp<String>>

    @POST("/userCenter/login")
    fun login(@Body req: LoginReq): Observable<BaseResp<UseInfo>>

    @POST("/userCenter/forgetPwd")
    fun forgetPwd(@Body req: ForgwtPwdReq): Observable<BaseResp<String>>

    @POST("/userCenter/resetPwd")
    fun resetPwd(@Body req: ResetPwdReq): Observable<BaseResp<String>>
}